using System;
using Abot.Poco;
using Crawler.Domain;

namespace Crawler.Abot.Configurations
{
	internal class YifiConfigurator : Configurator
	{
		public override TorrentSource ForType
		{
			get { return TorrentSource.YifyTorrent; }
		}

		public override Uri RootUri
		{
			get { return new Uri("http://www.yify-torrent.org"); }
		}

		public override CrawlConfiguration BuildConfiguration()
		{
			var cfg = new CrawlConfiguration
			{
				HttpRequestTimeoutInSeconds = 120,
				MaxPagesToCrawl = 100000,
				MaxConcurrentThreads = 100
			};

			return cfg;
		}
	}
}